

//package cfu_main.fir;
/*
 * This file creates the array of 8x8 CFU (total 64 CFUs). It verifies the functionality od FIR filter
 * Filter configuration: 
 * 		LCF = 0.3; HCF = 80;Sampling frequency =;Taps = 25; Number of channels = 1;
 * 		
 * 
 * 
 */

//import java.io.*;
//import java.util.*;

public class Mapping_Main {

	/*
	 * Input arguments to this class will be in the following order 0-
	 * Instruction 1- 1st input register index 2- 2nd input register index; pass
	 * null if not required 3- 3rd input register index; pass null if not
	 * required 4- Output register index 5- Shift offset
	 */

	/*
	 * public static String no_cfu_row_string; public static String
	 * no_cfu_column_string ; public static String no_taps_string; public static
	 * String no_samples_string; public static String no_channels_string;
	 */

	public static int no_cfu_row_int = ISS_SIMD_Form_Main.row;
	public static int no_cfu_column_int = ISS_SIMD_Form_Main.column;
	
	public int no_samples_int;
	public int no_channels_int;
	public int total_cfu, no_cfu_per_channel, unused_cfu;

	
	public static Cfu[][] Cfu_Array = new Cfu[no_cfu_row_int][no_cfu_column_int];

	public int last_ram_read_index=0;

	// public File in_data_file;
	public String file_path = "";
	public int ram_size = 2048;
	public int ram_read_index;

	// Instructions
	/*
	 * The same list of instructions will be used as in Cfu class
	 */

	// Cfu[][] Cfu_Array = new Cfu[no_cfu_row][no_cfu_column];
	// Cfu cfu1 = new Cfu(1,0,1,2,3,0);

//	public FIR_mapping(Instruction_List instruction)
//	{
//		this.instruction = instruction;
//	}
	
	public void Create_Cfu_Array() {
		// Creating array of 8x8 CFUs

		// Cfu_Array = new Cfu[no_cfu_row_int];

		// Initializing with default constructors
		for (int i = 0; i < no_cfu_row_int; i++) {
			for (int j = 0; j < no_cfu_column_int; j++) {

				Cfu_Array[i][j] = new Cfu();
			}
		}
	}
}
